﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LCL.Config
{
    /// <summary>
    ///  Email配置类
    /// </summary>
    public partial class LEmailConfigs
    {
        /// <summary>
        /// 获取配置类实例
        /// </summary>
        /// <returns></returns>
        public static LEmailConfigInfo GetConfig()
        {
            return LEmailConfigFileManager.LoadConfig();
        }
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <param name="configinfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(LEmailConfigInfo configinfo)
        {
            LEmailConfigFileManager rcfm = new LEmailConfigFileManager();
            LEmailConfigFileManager.ConfigInfo = configinfo;
            return rcfm.SaveConfig();
        }
    }
}
